package cn.mst.vrs.controller.admin.order.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 订单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OrderPageReqVO extends PageParam {

    @Schema(description = "订单类型主键ID", example = "22973")
    private Long typeId;

    @Schema(description = "用户主键ID", example = "16422")
    private Long userId;

    @Schema(description = "订单项主键ID（场地预约：场地主键ID）", example = "3762")
    private Long itemId;

    @Schema(description = "计数", example = "22705")
    private BigDecimal count;

    @Schema(description = "总计")
    private BigDecimal total;

    @Schema(description = "订单扩展信息")
    private String extendInfo;

    @Schema(description = "订单状态（0：待支付，1：待使用，2：已过期）", example = "2")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}